package com.zhongke.cotrun.controller.manager;

import com.zhongke.cotrun.common.util.APIResponse;
import com.zhongke.cotrun.model.pojo.UserIntegralHistory;
import com.zhongke.cotrun.service.UserIntegralHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/manager/UserIntegralHistoryManager")
public class UserIntegralHistoryManagerController {

    @Autowired
    UserIntegralHistoryService userIntegralHistoryService;

    /***
     * 后台查看积分历史
     * @param userIntegralHistory
     * @param pageNumber
     * @param pageSize
     * @return
     */
    @RequestMapping("/adminSelectUserIntegralHistory")
    public APIResponse adminSelectUserIntegralHistory(UserIntegralHistory userIntegralHistory, Integer pageNumber, Integer pageSize) {

     return APIResponse.returnSuccess( userIntegralHistoryService.adminSelectIntegralHistory(userIntegralHistory,pageNumber,pageSize));


    }
}
